<pre style="line-height: 100%;font-family:monospace;background-color:#ffffff; border-width:0.01mm; border-color:#000000; border-style:solid;padding:4px;font-size:10pt;"><span style="color:#808080;background-color:#ffffff;">/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements.  See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

</span><span style="color:#000080;background-color:#ffffff;">package</span><span style="background-color:#ffffff;"> cal;

</span><span style="color:#000080;background-color:#ffffff;">public</span><span style="background-color:#ffffff;"> </span><span style="color:#000080;background-color:#ffffff;">class</span><span style="background-color:#ffffff;"> Entry {

  String </span><span style="color:#660e7a;background-color:#ffffff;">hour;
</span><span style="background-color:#ffffff;">  String </span><span style="color:#660e7a;background-color:#ffffff;">description;
</span><span style="background-color:#ffffff;">  String </span><span style="color:#660e7a;background-color:#ffffff;">color;

</span><span style="background-color:#ffffff;">  </span><span style="color:#000080;background-color:#ffffff;">public</span><span style="background-color:#ffffff;"> Entry (String hour) {
    </span><span style="color:#000080;background-color:#ffffff;">this</span><span style="background-color:#ffffff;">.</span><span style="color:#660e7a;background-color:#ffffff;">hour </span><span style="background-color:#ffffff;">= hour;
    </span><span style="color:#000080;background-color:#ffffff;">this</span><span style="background-color:#ffffff;">.</span><span style="color:#660e7a;background-color:#ffffff;">description </span><span style="background-color:#ffffff;">= </span><span style="color:#008000;background-color:#ffffff;">""</span><span style="background-color:#ffffff;">;

  }

  </span><span style="color:#000080;background-color:#ffffff;">public</span><span style="background-color:#ffffff;"> String getHour () {
    </span><span style="color:#000080;background-color:#ffffff;">return</span><span style="background-color:#ffffff;"> </span><span style="color:#000080;background-color:#ffffff;">this</span><span style="background-color:#ffffff;">.</span><span style="color:#660e7a;background-color:#ffffff;">hour;
</span><span style="background-color:#ffffff;">  }

  </span><span style="color:#000080;background-color:#ffffff;">public</span><span style="background-color:#ffffff;"> String getColor () {
    </span><span style="color:#000080;background-color:#ffffff;">if</span><span style="background-color:#ffffff;"> (</span><span style="color:#660e7a;background-color:#ffffff;">description.</span><span style="background-color:#ffffff;">equals(</span><span style="color:#008000;background-color:#ffffff;">""</span><span style="background-color:#ffffff;">)) </span><span style="color:#000080;background-color:#ffffff;">return</span><span style="background-color:#ffffff;"> </span><span style="color:#008000;background-color:#ffffff;">"lightblue"</span><span style="background-color:#ffffff;">;
    </span><span style="color:#000080;background-color:#ffffff;">else</span><span style="background-color:#ffffff;"> </span><span style="color:#000080;background-color:#ffffff;">return</span><span style="background-color:#ffffff;"> </span><span style="color:#008000;background-color:#ffffff;">"red"</span><span style="background-color:#ffffff;">;
  }

  </span><span style="color:#000080;background-color:#ffffff;">public</span><span style="background-color:#ffffff;"> String getDescription () {
    </span><span style="color:#000080;background-color:#ffffff;">if</span><span style="background-color:#ffffff;"> (</span><span style="color:#660e7a;background-color:#ffffff;">description.</span><span style="background-color:#ffffff;">equals(</span><span style="color:#008000;background-color:#ffffff;">""</span><span style="background-color:#ffffff;">)) </span><span style="color:#000080;background-color:#ffffff;">return</span><span style="background-color:#ffffff;"> </span><span style="color:#008000;background-color:#ffffff;">"None"</span><span style="background-color:#ffffff;">;
    </span><span style="color:#000080;background-color:#ffffff;">else</span><span style="background-color:#ffffff;"> </span><span style="color:#000080;background-color:#ffffff;">return</span><span style="background-color:#ffffff;"> </span><span style="color:#000080;background-color:#ffffff;">this</span><span style="background-color:#ffffff;">.</span><span style="color:#660e7a;background-color:#ffffff;">description;
</span><span style="background-color:#ffffff;">  }

  </span><span style="color:#000080;background-color:#ffffff;">public</span><span style="background-color:#ffffff;"> </span><span style="color:#000080;background-color:#ffffff;">void</span><span style="background-color:#ffffff;"> setDescription (String descr) {
    </span><span style="color:#660e7a;background-color:#ffffff;">description </span><span style="background-color:#ffffff;">= descr;
  }

}




</span></pre>